home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14459 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  847 b 

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Trace C memory allocation
  5. Date: 14 Apr 1996 18:45:08 -0700
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4ks9n4INNi1j@keats.ugrad.cs.ubc.ca>
  8. References: <4ks3n2$2mt@news.hklink.net>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4ks3n2$2mt@news.hklink.net>, Alex Chu <alex@station.net> wrote:
  12.  >
  13.  >Hi everybody,
  14.  >
  15.  >
  16.  >    I using the Turbo C 2.0 for DOS at this moment.  I wonder that how can
  17.  >I trace the memory allocation in C.  The 'Add Watch' option only can
  18.  
  19. Easy! An allocation block can't hide anywhere---it has to be somewhere inside a
  20. 640,000 byte region. That makes things easy. Just go into DEBUG.COM and grep
  21. the memory for the likely start of a malloc chunk.
  22.